


class Phone:
    IMEI = None
    producer = "cx"

    def call_by_4g(self):
        print("call by 4g")


class Phone2022(Phone):
    face_id = True

    def call_by_5g(self):
        print("call by 5g newly in 2022")




class NFCReader:
    nfc_type = "第五代"
    producer = "cx"

    def read_card(self):
        print("读取NFC卡")

    def write_card(self):
        print("写入NFC卡")

class RemoteControl:
    rc_type = "红外遥控"

    def control(self):
        print("红外遥控开启")

class Myphone(Phone2022,NFCReader,RemoteControl):   # 重名，就近原则
    pass

phone = Myphone()
phone.call_by_4g()
phone.read_card()
phone.write_card()
phone.control()